<!DOCTYPE html>
<html>
<head>
  <title>sso</title>
  <meta content="sso" name="description"/>
  <meta content="sso" name="keywords">

  <%- include('./head') %>
    <style>
        body{
            text-align: center;
        }
        h3{
            padding-top: 20px;
            font-size: 30px;
            font-weight: bold;
        }
        div{
            line-height: 30px;
        }
    </style>
</head>
<body>
<%- include('../public/pcCom/header/header',{}) %>
<%- include('./keep-sso',{}) %>
<h3>这里是不需要登录，也可以访问的页面</h3>
<div>
用户登录状态 ：<%= _userinfo ? JSON.stringify(_userinfo) : "未登录" %>
</div>
<div>
  <a href="/app/page">去必须登录才能访问的页面</a>
</div>
<div>
  <a href="<%= _conf.ssoLogin %><%= _fromUrl %>">登录</a>
</div>
<div>
  <a href="http://127.0.0.1:3001" >去其它产品，子服务1</a>
</div>
<div>
  <span class="loginout">退出登录</span>
</div>
<%- include('../public/pcCom/footer/footer',{}) %>
</body>
<script>
  $(".loginout").click(function () {
    $.ajax({
      type:"post",
      url:"/api/loginout",
      success:function (res) {
        window.location.href = "/";
      }
    })
  })
</script>
</html>
